const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const PermissionSchema = new Schema(
    {
        menus: String,
        interfaces: String,
        type: Number, //0: 菜单，1: 接口
        role: Schema.ObjectId,
    },
    { timestamps: { createdAt: "createTime", updatedAt: "updateTime" } }
);
module.exports = mongoose.model("Permission", PermissionSchema);
